Trait anoma_apps::std::prelude::v1::Clone 1.0.0[−][src]
pub trait Clone {
fn clone(&self) -> Self;
fn clone_from(&mut self, source: &Self) { ... }
}Expand description
A common trait for the ability to explicitly duplicate an object.
Differs from Copy in that Copy is implicit and an inexpensive bit-wise copy, while
Clone is always explicit and may or may not be expensive. In order to enforce
these characteristics, Rust does not allow you to reimplement Copy, but you
may reimplement Clone and run arbitrary code.
Since Clone is more general than Copy, you can automatically make anything
Copy be Clone as well.
Derivable
This trait can be used with #[derive] if all fields are Clone. The derived
implementation of Clone calls clone on each field.
For a generic struct, #[derive] implements Clone conditionally by adding bound Clone on
generic parameters.
// `derive` implements Clone for Reading<T> when T is Clone.
#[derive(Clone)]
struct Reading<T> {
frequency: T,
}How can I implement Clone?
Types that are Copy should have a trivial implementation of Clone. More formally:
if T: Copy, x: T, and y: &T, then let x = y.clone(); is equivalent to let x = *y;.
Manual implementations should be careful to uphold this invariant; however, unsafe code
must not rely on it to ensure memory safety.
An example is a generic struct holding a function pointer. In this case, the
implementation of Clone cannot be derived, but can be implemented as:
struct Generate<T>(fn() -> T);
impl<T> Copy for Generate<T> {}
impl<T> Clone for Generate<T> {
fn clone(&self) -> Self {
*self
}
}Additional implementors
In addition to the implementors listed below,
the following types also implement Clone:
- Function item types (i.e., the distinct types defined for each function)
- Function pointer types (e.g.,
fn() -> i32) - Tuple types, if each component also implements
Clone(e.g.,(),(i32, bool)) - Closure types, if they capture no value from the environment
or if all such captured values implement
Clonethemselves. Note that variables captured by shared reference always implementClone(even if the referent doesn’t), while variables captured by mutable reference never implementClone.
Required methods
Provided methods
fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source.
a.clone_from(&b) is equivalent to a = b.clone() in functionality,
but can be overridden to reuse the resources of a to avoid unnecessary
allocations.
Implementations on Foreign Types
Shared references can be cloned, but mutable references cannot!
Shared references can be cloned, but mutable references cannot!
impl<'_, MEM, DB, H, CA> Clone for TxEnv<'_, MEM, DB, H, CA> where
MEM: VmMemory,
DB: DB + for<'iter> DBIter<'iter>,
H: StorageHasher,
CA: WasmCacheAccess,
impl<'_, MEM, DB, H, CA> Clone for TxEnv<'_, MEM, DB, H, CA> where
MEM: VmMemory,
DB: DB + for<'iter> DBIter<'iter>,
H: StorageHasher,
CA: WasmCacheAccess,
impl<'_, MEM, DB, H, EVAL, CA> Clone for VpEnv<'_, MEM, DB, H, EVAL, CA> where
MEM: VmMemory,
DB: DB + for<'iter> DBIter<'iter>,
H: StorageHasher,
EVAL: VpEvaluator,
CA: WasmCacheAccess,
impl<'_, MEM, DB, H, EVAL, CA> Clone for VpEnv<'_, MEM, DB, H, EVAL, CA> where
MEM: VmMemory,
DB: DB + for<'iter> DBIter<'iter>,
H: StorageHasher,
EVAL: VpEvaluator,
CA: WasmCacheAccess,
impl<'a, DB, H, CA> Clone for TxCtx<'a, DB, H, CA> where
DB: DB + for<'iter> DBIter<'iter>,
H: StorageHasher,
CA: WasmCacheAccess,
impl<'a, DB, H, CA> Clone for TxCtx<'a, DB, H, CA> where
DB: DB + for<'iter> DBIter<'iter>,
H: StorageHasher,
CA: WasmCacheAccess,
impl<'a, DB, H, EVAL, CA> Clone for VpCtx<'a, DB, H, EVAL, CA> where
DB: DB + for<'iter> DBIter<'iter>,
H: StorageHasher,
EVAL: VpEvaluator,
CA: WasmCacheAccess,
impl<'a, DB, H, EVAL, CA> Clone for VpCtx<'a, DB, H, EVAL, CA> where
DB: DB + for<'iter> DBIter<'iter>,
H: StorageHasher,
EVAL: VpEvaluator,
CA: WasmCacheAccess,
pub fn clone(&self) -> HandlerOutputBuilder<T>
pub fn clone(&self) -> WeakShared<Fut>
pub fn clone(&self) -> With<Si, Item, U, Fut, F>
impl<T> Clone for Pending<T>
impl<T> Clone for Pending<T>
pub fn clone(&self) -> SinkMapErr<Si, F>
impl<'a, T> Clone for Iter<'a, T>
impl<'a, T> Clone for Iter<'a, T>
pub fn clone(&self) -> Instrumented<T>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;pub fn clone(&self) -> WithDispatch<T>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;pub fn clone(&self) -> Either<A, B>ⓘNotable traits for Either<A, B>impl<A, B, T, AE, BE> Future for Either<A, B> where
A: Future<Output = Result<T, AE>>,
AE: Into<Box<dyn Error + Send + Sync + 'static, Global>>,
B: Future<Output = Result<T, BE>>,
BE: Into<Box<dyn Error + Send + Sync + 'static, Global>>, type Output = Result<T, Box<dyn Error + Send + Sync + 'static, Global>>;
impl<A, B, T, AE, BE> Future for Either<A, B> where
A: Future<Output = Result<T, AE>>,
AE: Into<Box<dyn Error + Send + Sync + 'static, Global>>,
B: Future<Output = Result<T, BE>>,
BE: Into<Box<dyn Error + Send + Sync + 'static, Global>>, type Output = Result<T, Box<dyn Error + Send + Sync + 'static, Global>>;impl<X> Clone for WeightedIndex<X> where
X: Clone + SampleUniform + PartialOrd<X>,
<X as SampleUniform>::Sampler: Clone,
impl<X> Clone for WeightedIndex<X> where
X: Clone + SampleUniform + PartialOrd<X>,
<X as SampleUniform>::Sampler: Clone,
pub fn clone(&self) -> IndexVecIntoIterⓘNotable traits for IndexVecIntoIterimpl Iterator for IndexVecIntoIter type Item = usize;
impl Iterator for IndexVecIntoIter type Item = usize;impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: BlockRngCore + SeedableRng + Clone,
Rsdr: RngCore + Clone,
impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: BlockRngCore + SeedableRng + Clone,
Rsdr: RngCore + Clone,
impl<X> Clone for Uniform<X> where
X: Clone + SampleUniform,
<X as SampleUniform>::Sampler: Clone,
impl<X> Clone for Uniform<X> where
X: Clone + SampleUniform,
<X as SampleUniform>::Sampler: Clone,
impl<R> Clone for BlockRng64<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng64<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl Clone for __c_anonymous_sockaddr_can_j1939
impl Clone for __c_anonymous_sockaddr_can_j1939
pub fn clone(&self) -> __c_anonymous_sockaddr_can_j1939
impl Clone for __c_anonymous_sockaddr_can_can_addr
impl Clone for __c_anonymous_sockaddr_can_can_addr
pub fn clone(&self) -> __c_anonymous_sockaddr_can_can_addr
pub fn clone(&self) -> SseMachine<S3, S4, NI>
pub fn clone(&self) -> SmallVec<A>
pub fn clone_from(&mut self, source: &SmallVec<A>)
impl<T> Clone for PollSender<T>
impl<T> Clone for PollSender<T>
pub fn clone(&self) -> PollSender<T>
pub fn clone(&self) -> PollSender<T>
Clones this PollSender. The resulting clone will not have any
in-progress send operations, even if the current PollSender does.
pub fn clone(&self) -> Difference<'_, T, S>ⓘNotable traits for Difference<'a, T, S>impl<'a, T, S> Iterator for Difference<'a, T, S> where
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
impl<'a, T, S> Iterator for Difference<'a, T, S> where
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;pub fn clone(&self) -> SymmetricDifference<'_, T, S1, S2>ⓘNotable traits for SymmetricDifference<'a, T, S1, S2>impl<'a, T, S1, S2> Iterator for SymmetricDifference<'a, T, S1, S2> where
T: Eq + Hash,
S1: BuildHasher,
S2: BuildHasher, type Item = &'a T;
impl<'a, T, S1, S2> Iterator for SymmetricDifference<'a, T, S1, S2> where
T: Eq + Hash,
S1: BuildHasher,
S2: BuildHasher, type Item = &'a T;pub fn clone(&self) -> Intersection<'_, T, S>ⓘNotable traits for Intersection<'a, T, S>impl<'a, T, S> Iterator for Intersection<'a, T, S> where
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
impl<'a, T, S> Iterator for Intersection<'a, T, S> where
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;impl<T> Clone for RawIter<T>
impl<T> Clone for RawIter<T>
pub fn clone(&self) -> RawTable<T, A>
pub fn clone_from(&mut self, source: &RawTable<T, A>)
impl<'_, K, V> Clone for Keys<'_, K, V>
impl<'_, K, V> Clone for Keys<'_, K, V>
impl<'_, K> Clone for Iter<'_, K>
impl<'_, K> Clone for Iter<'_, K>
impl<'_, K, V> Clone for Iter<'_, K, V>
impl<'_, K, V> Clone for Iter<'_, K, V>
pub fn clone(&self) -> HashMap<K, V, S, A>
pub fn clone_from(&mut self, source: &HashMap<K, V, S, A>)
impl<'_, K, V> Clone for Values<'_, K, V>
impl<'_, K, V> Clone for Values<'_, K, V>
pub fn clone(&self) -> HashSet<T, S, A>
pub fn clone_from(&mut self, source: &HashSet<T, S, A>)
impl<'a> Clone for PercentDecode<'a>
impl<'a> Clone for PercentDecode<'a>
impl<'a> Clone for PercentEncode<'a>
impl<'a> Clone for PercentEncode<'a>
impl<T> Clone for RtVariableCoreWrapper<T> where
T: Clone + VariableOutputCore + UpdateCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
<T as BlockSizeUser>::BlockSize: Clone,
<T as BufferKindUser>::BufferKind: Clone,
impl<T> Clone for RtVariableCoreWrapper<T> where
T: Clone + VariableOutputCore + UpdateCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
<T as BlockSizeUser>::BlockSize: Clone,
<T as BufferKindUser>::BufferKind: Clone,
pub fn clone(&self) -> RtVariableCoreWrapper<T>ⓘNotable traits for RtVariableCoreWrapper<T>impl<T> Write for RtVariableCoreWrapper<T> where
T: VariableOutputCore + UpdateCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
impl<T> Write for RtVariableCoreWrapper<T> where
T: VariableOutputCore + UpdateCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero, impl<T> Clone for CoreWrapper<T> where
T: Clone + BufferKindUser,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
<T as BlockSizeUser>::BlockSize: Clone,
<T as BufferKindUser>::BufferKind: Clone,
impl<T> Clone for CoreWrapper<T> where
T: Clone + BufferKindUser,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
<T as BlockSizeUser>::BlockSize: Clone,
<T as BufferKindUser>::BufferKind: Clone,
pub fn clone(&self) -> CoreWrapper<T>ⓘNotable traits for CoreWrapper<T>impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero, impl<T, OutSize> Clone for CtVariableCoreWrapper<T, OutSize> where
T: Clone + VariableOutputCore,
OutSize: Clone + ArrayLength<u8> + IsLessOrEqual<<T as OutputSizeUser>::OutputSize>,
<OutSize as IsLessOrEqual<<T as OutputSizeUser>::OutputSize>>::Output: NonZero,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
impl<T, OutSize> Clone for CtVariableCoreWrapper<T, OutSize> where
T: Clone + VariableOutputCore,
OutSize: Clone + ArrayLength<u8> + IsLessOrEqual<<T as OutputSizeUser>::OutputSize>,
<OutSize as IsLessOrEqual<<T as OutputSizeUser>::OutputSize>>::Output: NonZero,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
impl<T> Clone for XofReaderCoreWrapper<T> where
T: Clone + XofReaderCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
<T as BlockSizeUser>::BlockSize: Clone,
impl<T> Clone for XofReaderCoreWrapper<T> where
T: Clone + XofReaderCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
<T as BlockSizeUser>::BlockSize: Clone,
pub fn clone(&self) -> XofReaderCoreWrapper<T>ⓘNotable traits for XofReaderCoreWrapper<T>impl<T> Read for XofReaderCoreWrapper<T> where
T: XofReaderCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
impl<T> Read for XofReaderCoreWrapper<T> where
T: XofReaderCore,
<T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero, pub fn clone(&self) -> GenericArray<T, N>
impl<BlockSize, Kind> Clone for BlockBuffer<BlockSize, Kind> where
BlockSize: ArrayLength<u8> + IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
Kind: BufferKind,
<BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
impl<BlockSize, Kind> Clone for BlockBuffer<BlockSize, Kind> where
BlockSize: ArrayLength<u8> + IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
Kind: BufferKind,
<BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
impl Clone for InvalidNextValidatorSetSubdetail
impl Clone for InvalidNextValidatorSetSubdetail
pub fn clone(&self) -> InvalidNextValidatorSetSubdetail
pub fn clone(&self) -> PredicateVerifier<P, C, V, H>
impl Clone for MismatchPreCommitLengthSubdetail
impl Clone for MismatchPreCommitLengthSubdetail
pub fn clone(&self) -> MismatchPreCommitLengthSubdetail
impl Clone for InsufficientSignersOverlapSubdetail
impl Clone for InsufficientSignersOverlapSubdetail
pub fn clone(&self) -> InsufficientSignersOverlapSubdetail
impl Clone for Sha512Trunc224
impl Clone for Sha512Trunc224
impl Clone for Sha512Trunc256
impl Clone for Sha512Trunc256
pub fn clone(&self) -> BlockBuffer<BlockSize>
impl<R> Clone for BlockRng<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng64<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng64<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<X> Clone for Uniform<X> where
X: Clone + SampleUniform,
<X as SampleUniform>::Sampler: Clone,
impl<X> Clone for Uniform<X> where
X: Clone + SampleUniform,
<X as SampleUniform>::Sampler: Clone,
impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: BlockRngCore + SeedableRng + Clone,
Rsdr: RngCore + Clone,
impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: BlockRngCore + SeedableRng + Clone,
Rsdr: RngCore + Clone,
pub fn clone(&self) -> IndexVecIntoIterⓘNotable traits for IndexVecIntoIterimpl Iterator for IndexVecIntoIter type Item = usize;
impl Iterator for IndexVecIntoIter type Item = usize;impl<X> Clone for WeightedIndex<X> where
X: Clone + SampleUniform + PartialOrd<X>,
<X as SampleUniform>::Sampler: Clone,
impl<X> Clone for WeightedIndex<X> where
X: Clone + SampleUniform + PartialOrd<X>,
<X as SampleUniform>::Sampler: Clone,
impl Clone for Ripemd160
impl Clone for Ripemd160
impl Clone for Sha3_384
impl Clone for Sha3_384
impl Clone for Sha3_224
impl Clone for Sha3_224
impl Clone for Keccak384
impl Clone for Keccak384
impl Clone for Sha3_256
impl Clone for Sha3_256
impl Clone for Keccak256Full
impl Clone for Keccak256Full
impl Clone for Keccak512
impl Clone for Keccak512
impl Clone for Shake256
impl Clone for Shake256
impl Clone for Shake128
impl Clone for Shake128
impl Clone for Sha3_512
impl Clone for Sha3_512
impl Clone for Keccak256
impl Clone for Keccak256
impl Clone for Keccak224
impl Clone for Keccak224
impl Clone for Rng
impl Clone for Rng
pub fn clone(&self) -> Rng
pub fn clone(&self) -> Rng
Clones the generator by deterministically deriving a new generator based on the initial seed.
Example
// Seed two generators equally, and clone both of them.
let base1 = fastrand::Rng::new();
base1.seed(0x4d595df4d0f33173);
base1.bool(); // Use the generator once.
let base2 = fastrand::Rng::new();
base2.seed(0x4d595df4d0f33173);
base2.bool(); // Use the generator once.
let rng1 = base1.clone();
let rng2 = base2.clone();
assert_eq!(rng1.u64(..), rng2.u64(..), "the cloned generators are identical");impl<Data, Offset> Clone for EpochedDelta<Data, Offset> where
Data: Clone + Add<Data, Output = Data> + BorshDeserialize + BorshSerialize + BorshSchema,
Offset: Clone + EpochOffset,
impl<Data, Offset> Clone for EpochedDelta<Data, Offset> where
Data: Clone + Add<Data, Output = Data> + BorshDeserialize + BorshSerialize + BorshSchema,
Offset: Clone + EpochOffset,
impl<Address> Clone for WeightedValidator<Address> where
Address: Clone + Debug + PartialEq<Address> + Eq + PartialOrd<Address> + Ord + Hash + BorshDeserialize + BorshSchema + BorshSerialize,
impl<Address> Clone for WeightedValidator<Address> where
Address: Clone + Debug + PartialEq<Address> + Eq + PartialOrd<Address> + Ord + Hash + BorshDeserialize + BorshSchema + BorshSerialize,
impl<Address, TokenAmount, TokenChange, PublicKey> Clone for DataUpdate<Address, TokenAmount, TokenChange, PublicKey> where
TokenAmount: Clone + Debug + Default + Eq + Sub<TokenAmount> + Add<TokenAmount, Output = TokenAmount> + AddAssign<TokenAmount> + BorshDeserialize + BorshSerialize + BorshSchema,
TokenChange: Clone + Display + Debug + Default + Copy + Add<TokenChange, Output = TokenChange> + Sub<TokenChange, Output = TokenChange> + From<TokenAmount> + Into<i128> + PartialEq<TokenChange> + Eq + BorshDeserialize + BorshSerialize + BorshSchema,
PublicKey: Clone + Debug + BorshDeserialize + BorshSerialize + BorshSchema,
Address: Display + Debug + Clone + PartialEq<Address> + Eq + PartialOrd<Address> + Ord + Hash + BorshDeserialize + BorshSerialize + BorshSchema,
impl<Address, TokenAmount, TokenChange, PublicKey> Clone for DataUpdate<Address, TokenAmount, TokenChange, PublicKey> where
TokenAmount: Clone + Debug + Default + Eq + Sub<TokenAmount> + Add<TokenAmount, Output = TokenAmount> + AddAssign<TokenAmount> + BorshDeserialize + BorshSerialize + BorshSchema,
TokenChange: Clone + Display + Debug + Default + Copy + Add<TokenChange, Output = TokenChange> + Sub<TokenChange, Output = TokenChange> + From<TokenAmount> + Into<i128> + PartialEq<TokenChange> + Eq + BorshDeserialize + BorshSerialize + BorshSchema,
PublicKey: Clone + Debug + BorshDeserialize + BorshSerialize + BorshSchema,
Address: Display + Debug + Clone + PartialEq<Address> + Eq + PartialOrd<Address> + Ord + Hash + BorshDeserialize + BorshSerialize + BorshSchema,
impl<Address> Clone for ValidatorSet<Address> where
Address: Clone + Debug + PartialEq<Address> + Eq + PartialOrd<Address> + Ord + Hash + BorshDeserialize + BorshSchema + BorshSerialize,
impl<Address> Clone for ValidatorSet<Address> where
Address: Clone + Debug + PartialEq<Address> + Eq + PartialOrd<Address> + Ord + Hash + BorshDeserialize + BorshSchema + BorshSerialize,
impl<Address, TokenChange, PublicKey> Clone for ValidatorUpdate<Address, TokenChange, PublicKey> where
TokenChange: Clone + Display + Debug + Default + Copy + Add<TokenChange, Output = TokenChange> + Sub<TokenChange, Output = TokenChange> + PartialEq<TokenChange> + Eq + BorshDeserialize + BorshSerialize + BorshSchema,
PublicKey: Clone + Debug + BorshDeserialize + BorshSerialize + BorshSchema,
Address: Clone + Debug,
impl<Address, TokenChange, PublicKey> Clone for ValidatorUpdate<Address, TokenChange, PublicKey> where
TokenChange: Clone + Display + Debug + Default + Copy + Add<TokenChange, Output = TokenChange> + Sub<TokenChange, Output = TokenChange> + PartialEq<TokenChange> + Eq + BorshDeserialize + BorshSerialize + BorshSchema,
PublicKey: Clone + Debug + BorshDeserialize + BorshSerialize + BorshSchema,
Address: Clone + Debug,
pub fn clone(&self) -> MergeJoinBy<I, J, F>ⓘ
pub fn clone(&self) -> ConsTuples<I, J>ⓘimpl<X, Iter, K, L> Iterator for ConsTuples<Iter, ((K, L), X)> where
Iter: Iterator<Item = ((K, L), X)>, type Item = (K, L, X);impl<X, Iter, D, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((D, E, F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((D, E, F, G, H, I, J, K, L), X)>, type Item = (D, E, F, G, H, I, J, K, L, X);impl<X, Iter, I, J, K, L> Iterator for ConsTuples<Iter, ((I, J, K, L), X)> where
Iter: Iterator<Item = ((I, J, K, L), X)>, type Item = (I, J, K, L, X);impl<X, Iter, H, I, J, K, L> Iterator for ConsTuples<Iter, ((H, I, J, K, L), X)> where
Iter: Iterator<Item = ((H, I, J, K, L), X)>, type Item = (H, I, J, K, L, X);impl<X, Iter, C, D, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((C, D, E, F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((C, D, E, F, G, H, I, J, K, L), X)>, type Item = (C, D, E, F, G, H, I, J, K, L, X);impl<X, Iter, J, K, L> Iterator for ConsTuples<Iter, ((J, K, L), X)> where
Iter: Iterator<Item = ((J, K, L), X)>, type Item = (J, K, L, X);impl<X, Iter, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((G, H, I, J, K, L), X)>, type Item = (G, H, I, J, K, L, X);impl<X, Iter, B, C, D, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((B, C, D, E, F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((B, C, D, E, F, G, H, I, J, K, L), X)>, type Item = (B, C, D, E, F, G, H, I, J, K, L, X);impl<X, Iter, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((E, F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((E, F, G, H, I, J, K, L), X)>, type Item = (E, F, G, H, I, J, K, L, X);impl<X, Iter, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((F, G, H, I, J, K, L), X)>, type Item = (F, G, H, I, J, K, L, X);
impl<X, Iter, K, L> Iterator for ConsTuples<Iter, ((K, L), X)> where
Iter: Iterator<Item = ((K, L), X)>, type Item = (K, L, X);impl<X, Iter, D, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((D, E, F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((D, E, F, G, H, I, J, K, L), X)>, type Item = (D, E, F, G, H, I, J, K, L, X);impl<X, Iter, I, J, K, L> Iterator for ConsTuples<Iter, ((I, J, K, L), X)> where
Iter: Iterator<Item = ((I, J, K, L), X)>, type Item = (I, J, K, L, X);impl<X, Iter, H, I, J, K, L> Iterator for ConsTuples<Iter, ((H, I, J, K, L), X)> where
Iter: Iterator<Item = ((H, I, J, K, L), X)>, type Item = (H, I, J, K, L, X);impl<X, Iter, C, D, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((C, D, E, F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((C, D, E, F, G, H, I, J, K, L), X)>, type Item = (C, D, E, F, G, H, I, J, K, L, X);impl<X, Iter, J, K, L> Iterator for ConsTuples<Iter, ((J, K, L), X)> where
Iter: Iterator<Item = ((J, K, L), X)>, type Item = (J, K, L, X);impl<X, Iter, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((G, H, I, J, K, L), X)>, type Item = (G, H, I, J, K, L, X);impl<X, Iter, B, C, D, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((B, C, D, E, F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((B, C, D, E, F, G, H, I, J, K, L), X)>, type Item = (B, C, D, E, F, G, H, I, J, K, L, X);impl<X, Iter, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((E, F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((E, F, G, H, I, J, K, L), X)>, type Item = (E, F, G, H, I, J, K, L, X);impl<X, Iter, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((F, G, H, I, J, K, L), X)> where
Iter: Iterator<Item = ((F, G, H, I, J, K, L), X)>, type Item = (F, G, H, I, J, K, L, X);pub fn clone(&self) -> Combinations<I>ⓘ
pub fn clone(&self) -> IntersperseWith<I, ElemF>ⓘNotable traits for IntersperseWith<I, ElemF>impl<I, ElemF> Iterator for IntersperseWith<I, ElemF> where
I: Iterator,
ElemF: IntersperseElement<<I as Iterator>::Item>, type Item = <I as Iterator>::Item;
impl<I, ElemF> Iterator for IntersperseWith<I, ElemF> where
I: Iterator,
ElemF: IntersperseElement<<I as Iterator>::Item>, type Item = <I as Iterator>::Item;pub fn clone(&self) -> RepeatCall<F>ⓘNotable traits for RepeatCall<F>impl<A, F> Iterator for RepeatCall<F> where
F: FnMut() -> A, type Item = A;
impl<A, F> Iterator for RepeatCall<F> where
F: FnMut() -> A, type Item = A;impl<I, T, E> Clone for FlattenOk<I, T, E> where
I: Iterator<Item = Result<T, E>> + Clone,
T: IntoIterator,
<T as IntoIterator>::IntoIter: Clone,
impl<I, T, E> Clone for FlattenOk<I, T, E> where
I: Iterator<Item = Result<T, E>> + Clone,
T: IntoIterator,
<T as IntoIterator>::IntoIter: Clone,
pub fn clone(&self) -> WithPosition<I>ⓘNotable traits for WithPosition<I>impl<I> Iterator for WithPosition<I> where
I: Iterator, type Item = Position<<I as Iterator>::Item>;
impl<I> Iterator for WithPosition<I> where
I: Iterator, type Item = Position<<I as Iterator>::Item>;pub fn clone(&self) -> Zip<T>ⓘimpl<A, B, C, D, E> Iterator for Zip<(A, B, C, D, E)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item);impl<A, B, C, D, E, F> Iterator for Zip<(A, B, C, D, E, F)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item);impl<A, B, C, D, E, F, G, H, I, J, K> Iterator for Zip<(A, B, C, D, E, F, G, H, I, J, K)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator,
I: Iterator,
J: Iterator,
K: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item, <I as Iterator>::Item, <J as Iterator>::Item, <K as Iterator>::Item);impl<A, B, C, D, E, F, G, H, I, J, K, L> Iterator for Zip<(A, B, C, D, E, F, G, H, I, J, K, L)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator,
I: Iterator,
J: Iterator,
K: Iterator,
L: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item, <I as Iterator>::Item, <J as Iterator>::Item, <K as Iterator>::Item, <L as Iterator>::Item);impl<A, B, C, D> Iterator for Zip<(A, B, C, D)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item);impl<A, B> Iterator for Zip<(A, B)> where
A: Iterator,
B: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item);impl<A, B, C, D, E, F, G, H> Iterator for Zip<(A, B, C, D, E, F, G, H)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item);impl<A, B, C, D, E, F, G> Iterator for Zip<(A, B, C, D, E, F, G)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item);impl<A, B, C> Iterator for Zip<(A, B, C)> where
A: Iterator,
B: Iterator,
C: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item);impl<A, B, C, D, E, F, G, H, I, J> Iterator for Zip<(A, B, C, D, E, F, G, H, I, J)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator,
I: Iterator,
J: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item, <I as Iterator>::Item, <J as Iterator>::Item);impl<A> Iterator for Zip<(A,)> where
A: Iterator, type Item = (<A as Iterator>::Item,);impl<A, B, C, D, E, F, G, H, I> Iterator for Zip<(A, B, C, D, E, F, G, H, I)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator,
I: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item, <I as Iterator>::Item);
impl<A, B, C, D, E> Iterator for Zip<(A, B, C, D, E)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item);impl<A, B, C, D, E, F> Iterator for Zip<(A, B, C, D, E, F)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item);impl<A, B, C, D, E, F, G, H, I, J, K> Iterator for Zip<(A, B, C, D, E, F, G, H, I, J, K)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator,
I: Iterator,
J: Iterator,
K: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item, <I as Iterator>::Item, <J as Iterator>::Item, <K as Iterator>::Item);impl<A, B, C, D, E, F, G, H, I, J, K, L> Iterator for Zip<(A, B, C, D, E, F, G, H, I, J, K, L)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator,
I: Iterator,
J: Iterator,
K: Iterator,
L: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item, <I as Iterator>::Item, <J as Iterator>::Item, <K as Iterator>::Item, <L as Iterator>::Item);impl<A, B, C, D> Iterator for Zip<(A, B, C, D)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item);impl<A, B> Iterator for Zip<(A, B)> where
A: Iterator,
B: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item);impl<A, B, C, D, E, F, G, H> Iterator for Zip<(A, B, C, D, E, F, G, H)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item);impl<A, B, C, D, E, F, G> Iterator for Zip<(A, B, C, D, E, F, G)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item);impl<A, B, C> Iterator for Zip<(A, B, C)> where
A: Iterator,
B: Iterator,
C: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item);impl<A, B, C, D, E, F, G, H, I, J> Iterator for Zip<(A, B, C, D, E, F, G, H, I, J)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator,
I: Iterator,
J: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item, <I as Iterator>::Item, <J as Iterator>::Item);impl<A> Iterator for Zip<(A,)> where
A: Iterator, type Item = (<A as Iterator>::Item,);impl<A, B, C, D, E, F, G, H, I> Iterator for Zip<(A, B, C, D, E, F, G, H, I)> where
A: Iterator,
B: Iterator,
C: Iterator,
D: Iterator,
E: Iterator,
F: Iterator,
G: Iterator,
H: Iterator,
I: Iterator, type Item = (<A as Iterator>::Item, <B as Iterator>::Item, <C as Iterator>::Item, <D as Iterator>::Item, <E as Iterator>::Item, <F as Iterator>::Item, <G as Iterator>::Item, <H as Iterator>::Item, <I as Iterator>::Item);impl<T> Clone for TupleBuffer<T> where
T: Clone + HomogeneousTuple,
<T as TupleCollect>::Buffer: Clone,
impl<T> Clone for TupleBuffer<T> where
T: Clone + HomogeneousTuple,
<T as TupleCollect>::Buffer: Clone,
pub fn clone(&self) -> TupleBuffer<T>ⓘNotable traits for TupleBuffer<T>impl<T> Iterator for TupleBuffer<T> where
T: HomogeneousTuple, type Item = <T as TupleCollect>::Item;
impl<T> Iterator for TupleBuffer<T> where
T: HomogeneousTuple, type Item = <T as TupleCollect>::Item;pub fn clone(&self) -> ZipLongest<T, U>ⓘNotable traits for ZipLongest<T, U>impl<T, U> Iterator for ZipLongest<T, U> where
T: Iterator,
U: Iterator, type Item = EitherOrBoth<<T as Iterator>::Item, <U as Iterator>::Item>;
impl<T, U> Iterator for ZipLongest<T, U> where
T: Iterator,
U: Iterator, type Item = EitherOrBoth<<T as Iterator>::Item, <U as Iterator>::Item>;impl<I, T> Clone for TupleWindows<I, T> where
I: Clone + Iterator<Item = <T as TupleCollect>::Item>,
T: Clone + HomogeneousTuple,
impl<I, T> Clone for TupleWindows<I, T> where
I: Clone + Iterator<Item = <T as TupleCollect>::Item>,
T: Clone + HomogeneousTuple,
pub fn clone(&self) -> TupleWindows<I, T>ⓘNotable traits for TupleWindows<I, T>impl<I, T> Iterator for TupleWindows<I, T> where
I: Iterator<Item = <T as TupleCollect>::Item>,
T: HomogeneousTuple + Clone,
<T as TupleCollect>::Item: Clone, type Item = T;
impl<I, T> Iterator for TupleWindows<I, T> where
I: Iterator<Item = <T as TupleCollect>::Item>,
T: HomogeneousTuple + Clone,
<T as TupleCollect>::Item: Clone, type Item = T;pub fn clone(&self) -> Interleave<I, J>ⓘNotable traits for Interleave<I, J>impl<I, J> Iterator for Interleave<I, J> where
I: Iterator,
J: Iterator<Item = <I as Iterator>::Item>, type Item = <I as Iterator>::Item;
impl<I, J> Iterator for Interleave<I, J> where
I: Iterator,
J: Iterator<Item = <I as Iterator>::Item>, type Item = <I as Iterator>::Item;pub fn clone(&self) -> CombinationsWithReplacement<I>ⓘ
pub fn clone(&self) -> ExactlyOneError<I>ⓘNotable traits for ExactlyOneError<I>impl<I> Iterator for ExactlyOneError<I> where
I: Iterator, type Item = <I as Iterator>::Item;
impl<I> Iterator for ExactlyOneError<I> where
I: Iterator, type Item = <I as Iterator>::Item;pub fn clone(&self) -> Permutations<I>ⓘ
pub fn clone(&self) -> TupleCombinations<I, T>ⓘNotable traits for TupleCombinations<I, T>impl<I, T> Iterator for TupleCombinations<I, T> where
I: Iterator,
T: HasCombination<I>, type Item = T;
impl<I, T> Iterator for TupleCombinations<I, T> where
I: Iterator,
T: HasCombination<I>, type Item = T;pub fn clone(&self) -> InterleaveShortest<I, J>ⓘNotable traits for InterleaveShortest<I, J>impl<I, J> Iterator for InterleaveShortest<I, J> where
I: Iterator,
J: Iterator<Item = <I as Iterator>::Item>, type Item = <I as Iterator>::Item;
impl<I, J> Iterator for InterleaveShortest<I, J> where
I: Iterator,
J: Iterator<Item = <I as Iterator>::Item>, type Item = <I as Iterator>::Item;pub fn clone(&self) -> BTreeMapStrategy<K, V>
pub fn clone(&self) -> SelectValueTree<T>
pub fn clone(&self) -> OptionStrategy<T>
pub fn clone(&self) -> HashSetValueTree<T>
pub fn clone(&self) -> HashMapValueTree<K, V>
pub fn clone(&self) -> VecDequeStrategy<T>
pub fn clone(&self) -> LinkedListValueTree<T>
pub fn clone(&self) -> BitSetValueTree<T>
pub fn clone(&self) -> UniformArrayStrategy<S, T>
pub fn clone(&self) -> LazyJust<T, F>
pub fn clone(&self) -> HashMapStrategy<K, V>
pub fn clone(&self) -> HashSetStrategy<T>
pub fn clone(&self) -> MaybeOk<T, E>
pub fn clone(&self) -> BinaryHeapValueTree<T>
pub fn clone(&self) -> FlattenValueTree<S>
pub fn clone(&self) -> BinaryHeapStrategy<T>
pub fn clone(&self) -> BTreeMapValueTree<K, V>
pub fn clone(&self) -> MaybeErr<T, E>
pub fn clone(&self) -> PerturbValueTree<S, F>
pub fn clone(&self) -> SampledBitSetStrategy<T>
pub fn clone(&self) -> VecDequeValueTree<T>
pub fn clone(&self) -> SubsequenceValueTree<T>
pub fn clone(&self) -> VecValueTree<T>
pub fn clone(&self) -> BitSetStrategy<T>
pub fn clone(&self) -> UnionValueTree<T>
pub fn clone(&self) -> BTreeSetValueTree<T>
pub fn clone(&self) -> TupleUnionValueTree<T>
pub fn clone(&self) -> LinkedListStrategy<T>
pub fn clone(&self) -> OptionValueTree<T>
pub fn clone(&self) -> MaybeOkValueTree<T, E>
pub fn clone(&self) -> BTreeSetStrategy<T>
pub fn clone(&self) -> LazyValueTree<S>
pub fn clone(&self) -> MaybeErrValueTree<T, E>
pub fn clone(&self) -> FilterMapValueTree<V, F, O>
pub fn clone(&self) -> BitSet<B>
pub fn clone_from(&mut self, other: &BitSet<B>)
pub fn clone(&self) -> StrftimeItems<'a>ⓘNotable traits for StrftimeItems<'a>impl<'a> Iterator for StrftimeItems<'a> type Item = Item<'a>;
impl<'a> Iterator for StrftimeItems<'a> type Item = Item<'a>;impl<P> Clone for AteDoubleCoefficients<P> where
P: MNT4Parameters,
impl<P> Clone for AteDoubleCoefficients<P> where
P: MNT4Parameters,
pub fn clone(&self) -> AteDoubleCoefficients<P>
impl<P> Clone for AteDoubleCoefficients<P> where
P: MNT6Parameters,
impl<P> Clone for AteDoubleCoefficients<P> where
P: MNT6Parameters,
pub fn clone(&self) -> AteDoubleCoefficients<P>
impl<P> Clone for AteAdditionCoefficients<P> where
P: MNT4Parameters,
impl<P> Clone for AteAdditionCoefficients<P> where
P: MNT4Parameters,
pub fn clone(&self) -> AteAdditionCoefficients<P>
impl<P> Clone for MontgomeryGroupAffine<P> where
P: MontgomeryModelParameters,
impl<P> Clone for MontgomeryGroupAffine<P> where
P: MontgomeryModelParameters,
pub fn clone(&self) -> MontgomeryGroupAffine<P>
impl<P> Clone for GroupProjective<P> where
P: TEModelParameters,
impl<P> Clone for GroupProjective<P> where
P: TEModelParameters,
pub fn clone(&self) -> GroupProjective<P>
impl<P> Clone for GroupProjective<P> where
P: SWModelParameters,
impl<P> Clone for GroupProjective<P> where
P: SWModelParameters,
pub fn clone(&self) -> GroupProjective<P>
impl<P> Clone for AteAdditionCoefficients<P> where
P: MNT6Parameters,
impl<P> Clone for AteAdditionCoefficients<P> where
P: MNT6Parameters,
pub fn clone(&self) -> AteAdditionCoefficients<P>
impl<P> Clone for CubicExtField<P> where
P: CubicExtParameters,
impl<P> Clone for CubicExtField<P> where
P: CubicExtParameters,
pub fn clone(&self) -> CubicExtField<P>
impl<P> Clone for QuadExtField<P> where
P: QuadExtParameters,
impl<P> Clone for QuadExtField<P> where
P: QuadExtParameters,
pub fn clone(&self) -> QuadExtField<P>
pub fn clone(&self) -> PublicKeyShares<E>
pub fn clone(&self) -> PublicDecryptionContext<E>
pub fn clone(&self) -> Ciphertext<E>
pub fn clone(&self) -> BlindedKeyShareWindowTable<E>
pub fn clone(&self) -> BlindedKeyShares<E>
pub fn clone(&self) -> PrivateKeyShare<E>
pub fn clone(&self) -> DecryptionShare<E>
pub fn clone(&self) -> GeneralEvaluationDomain<F>
pub fn clone(&self) -> DenseOrSparsePolynomial<'a, F>
pub fn clone(&self) -> SparsePolynomial<F, T>
pub fn clone(&self) -> Evaluations<F, D>
pub fn clone(&self) -> DensePolynomial<F>
pub fn clone(&self) -> SparseMultilinearExtension<F>
pub fn clone(&self) -> MixedRadixEvaluationDomain<F>
pub fn clone(&self) -> SparsePolynomial<F>
pub fn clone(&self) -> DenseMultilinearExtension<F>
pub fn clone(&self) -> Radix2EvaluationDomain<F>
pub fn clone(&self) -> SubproductDomain<F>
pub fn clone(&self) -> SubproductTree<F>
pub fn clone(&self) -> PubliclyVerifiableSS<E, T>
pub fn clone(&self) -> VssState<Affine>
pub fn clone(&self) -> PubliclyVerifiableParams<E>
pub fn clone(&self) -> DkgState<E>
pub fn clone(&self) -> Aggregation<E>
pub fn clone(&self) -> PreparedPublicKey<E>
pub fn clone(&self) -> PublicKey<E>
pub fn clone(&self) -> TendermintValidator<E>
pub fn clone(&self) -> ValidatorSet<E>
pub fn clone(&self) -> Keypair<E>
impl<'a, T> Clone for WasmFuncTypeInputs<'a, T>
impl<'a, T> Clone for WasmFuncTypeInputs<'a, T>
impl<'a, T> Clone for WasmFuncTypeOutputs<'a, T>
impl<'a, T> Clone for WasmFuncTypeOutputs<'a, T>
impl<Args, Rets> Clone for NativeFunc<Args, Rets> where
Args: WasmTypeList,
Rets: WasmTypeList,
impl<Args, Rets> Clone for NativeFunc<Args, Rets> where
Args: WasmTypeList,
Rets: WasmTypeList,
pub fn clone(&self) -> NativeFunc<Args, Rets>
pub fn clone(&self) -> NamedResolverChain<A, B>
pub fn clone(&self) -> EnumSet<T>
pub fn clone(&self) -> ArchivedRangeInclusive<T>
impl Clone for AlignedVec
impl Clone for AlignedVec
pub fn clone(&self) -> ArchivedRangeToInclusive<T>
pub fn clone(&self) -> HashMap<K, V, S, A>
pub fn clone_from(&mut self, source: &HashMap<K, V, S, A>)
impl<'_, K, V> Clone for Iter<'_, K, V>
impl<'_, K, V> Clone for Iter<'_, K, V>
impl<'_, K, V> Clone for Values<'_, K, V>
impl<'_, K, V> Clone for Values<'_, K, V>
impl<'_, K, V> Clone for Keys<'_, K, V>
impl<'_, K, V> Clone for Keys<'_, K, V>
pub fn clone(&self) -> HashSet<T, S, A>
pub fn clone_from(&mut self, source: &HashSet<T, S, A>)
impl<'_, K> Clone for Iter<'_, K>
impl<'_, K> Clone for Iter<'_, K>
pub fn clone(&self) -> PackedOption<T>
pub fn clone(&self) -> BoxedSlice<K, V>
pub fn clone(&self) -> SecondaryMap<K, V>
pub fn clone(&self) -> PrimaryMap<K, V>
impl<'a, T> Clone for WasmFuncTypeOutputs<'a, T>
impl<'a, T> Clone for WasmFuncTypeOutputs<'a, T>
impl<'a, T> Clone for WasmFuncTypeInputs<'a, T>
impl<'a, T> Clone for WasmFuncTypeInputs<'a, T>
pub fn clone(&self) -> VMDynamicFunctionContext<T>
pub fn clone(&self) -> VMSharedSignatureIndex
pub fn clone(&self) -> TargetSharedSignatureIndex
pub fn clone(&self) -> LineProgramHeader<R, Offset>
pub fn clone(&self) -> Operation<R, Offset>
pub fn clone(&self) -> DebugMacinfoOffset<T>
pub fn clone(&self) -> EntriesCursor<'abbrev, 'unit, R>
pub fn clone(&self) -> ArangeHeader<R, Offset>
pub fn clone(&self) -> CfiEntriesIter<'bases, Section, R>
pub fn clone(&self) -> FrameDescriptionEntry<R, Offset>
pub fn clone(&self) -> Location<R, Offset>
pub fn clone(&self) -> CallFrameInstructionIter<'a, R>
pub fn clone(&self) -> DebugStrOffsetsBase<T>
pub fn clone(&self) -> RawRangeListsOffset<T>
pub fn clone(&self) -> PubNamesEntryIter<R>
pub fn clone(&self) -> LocationListsOffset<T>
pub fn clone(&self) -> ArangeEntryIter<R>
pub fn clone(&self) -> DebugInfoUnitHeadersIter<R>
pub fn clone(&self) -> DebugStrOffsetsIndex<T>
pub fn clone(&self) -> DebugRngListsIndex<T>
pub fn clone(&self) -> AttrsIter<'abbrev, 'entry, 'unit, R>
pub fn clone(&self) -> ParsedEhFrameHdr<R>
pub fn clone(&self) -> LocationListEntry<R>
pub fn clone(&self) -> DebugLineStrOffset<T>
pub fn clone(&self) -> LineInstruction<R, Offset>
pub fn clone(&self) -> AttributeValue<R, Offset>
pub fn clone(&self) -> FileEntry<R, Offset>
pub fn clone(&self) -> DebugTypesUnitHeadersIter<R>
pub fn clone(&self) -> CallFrameInstruction<R>
pub fn clone(&self) -> EhHdrTable<'a, R>
pub fn clone(&self) -> EntriesTree<'abbrev, 'unit, R>
pub fn clone(&self) -> EntriesRaw<'abbrev, 'unit, R>
pub fn clone(&self) -> DebugLocListsIndex<T>
pub fn clone(&self) -> CompleteLineProgram<R, Offset>
pub fn clone(&self) -> LineRows<R, Program, Offset>
pub fn clone(&self) -> PubTypesEntryIter<R>
pub fn clone(&self) -> RawLocListEntry<R>
pub fn clone(&self) -> LineInstructions<R>
impl<R, S> Clone for UnwindTableRow<R, S> where
R: Reader,
S: UnwindContextStorage<R>,
impl<R, S> Clone for UnwindTableRow<R, S> where
R: Reader,
S: UnwindContextStorage<R>,
pub fn clone(&self) -> UnwindTableRow<R, S>
pub fn clone(&self) -> Piece<R, Offset>
pub fn clone(&self) -> PartialFrameDescriptionEntry<'bases, Section, R>
pub fn clone(&self) -> UnitHeader<R, Offset>
pub fn clone(&self) -> PubTypesEntry<R>
pub fn clone(&self) -> UnitType<Offset>
pub fn clone(&self) -> UnwindContext<R, A>
pub fn clone(&self) -> PubNamesEntry<R>
pub fn clone(&self) -> DebuggingInformationEntry<'abbrev, 'unit, R, Offset>
pub fn clone(&self) -> CommonInformationEntry<R, Offset>
pub fn clone(&self) -> EndianSlice<'input, Endian>
pub fn clone(&self) -> IncompleteLineProgram<R, Offset>
pub fn clone(&self) -> ArangeHeaderIter<R>
pub fn clone(&self) -> CieOrFde<'bases, Section, R>
pub fn clone(&self) -> DebugArangesOffset<T>
pub fn clone(&self) -> LinkeditDataCommand<E>
pub fn clone(&self) -> DataInCodeEntry<E>
pub fn clone(&self) -> PrebindCksumCommand<E>
pub fn clone(&self) -> EncryptionInfoCommand32<E>
pub fn clone(&self) -> MachOSymbolTable<'data, 'file, Mach, R>
pub fn clone(&self) -> MachOSymbol<'data, 'file, Mach, R>
pub fn clone(&self) -> ElfSymbol<'data, 'file, Elf, R>
pub fn clone(&self) -> ProgramHeader32<E>
pub fn clone(&self) -> BuildToolVersion<E>
pub fn clone(&self) -> FvmfileCommand<E>
pub fn clone(&self) -> SymbolFlags<Section>
pub fn clone(&self) -> RoutinesCommand32<E>
pub fn clone(&self) -> EncryptionInfoCommand64<E>
pub fn clone(&self) -> SymbolTable<'data, Mach, R>
pub fn clone(&self) -> DylibReference<E>
impl Clone for ImageEpilogueDynamicRelocationHeader
impl Clone for ImageEpilogueDynamicRelocationHeader
pub fn clone(&self) -> ImageEpilogueDynamicRelocationHeader
pub fn clone(&self) -> LoadCommandIterator<'data, E>
pub fn clone(&self) -> SubClientCommand<E>
pub fn clone(&self) -> LoadCommandVariant<'data, E>
pub fn clone(&self) -> LoadCommandData<'data, E>
pub fn clone(&self) -> DyldInfoCommand<E>
pub fn clone(&self) -> PreboundDylibCommand<E>
pub fn clone(&self) -> VerdauxIterator<'data, Elf>
pub fn clone(&self) -> VerneedIterator<'data, Elf>
pub fn clone(&self) -> SymbolTable<'data, Elf, R>
impl<'data> Clone for ImportDescriptorIterator<'data>
impl<'data> Clone for ImportDescriptorIterator<'data>
pub fn clone(&self) -> ImportDescriptorIterator<'data>
impl<'data> Clone for RelocationIterator<'data>
impl<'data> Clone for RelocationIterator<'data>
pub fn clone(&self) -> SourceVersionCommand<E>
pub fn clone(&self) -> VerdefIterator<'data, Elf>
pub fn clone(&self) -> CompressionHeader64<E>
pub fn clone(&self) -> ElfSymbolTable<'data, 'file, Elf, R>
pub fn clone(&self) -> SubUmbrellaCommand<E>
impl Clone for ImageAlpha64RuntimeFunctionEntry
impl Clone for ImageAlpha64RuntimeFunctionEntry
pub fn clone(&self) -> ImageAlpha64RuntimeFunctionEntry
pub fn clone(&self) -> DyldCacheHeader<E>
impl<'data> Clone for RelocationBlockIterator<'data>
impl<'data> Clone for RelocationBlockIterator<'data>
pub fn clone(&self) -> RelocationBlockIterator<'data>
pub fn clone(&self) -> DylinkerCommand<E>
pub fn clone(&self) -> SectionHeader32<E>
pub fn clone(&self) -> StringTable<'data, R>
pub fn clone(&self) -> FilesetEntryCommand<E>
pub fn clone(&self) -> BuildVersionCommand<E>
pub fn clone(&self) -> SectionTable<'data, Elf, R>
pub fn clone(&self) -> SectionHeader64<E>
pub fn clone(&self) -> VernauxIterator<'data, Elf>
pub fn clone(&self) -> CoffSymbolTable<'data, 'file, R>
pub fn clone(&self) -> SubFrameworkCommand<E>
pub fn clone(&self) -> VersionTable<'data, Elf>
pub fn clone(&self) -> DylibTableOfContents<E>
pub fn clone(&self) -> DyldCacheImageInfo<E>
pub fn clone(&self) -> CoffSymbol<'data, 'file, R>
pub fn clone(&self) -> LinkerOptionCommand<E>
pub fn clone(&self) -> DyldCacheMappingInfo<E>
pub fn clone(&self) -> RoutinesCommand64<E>
pub fn clone(&self) -> SubLibraryCommand<E>
pub fn clone(&self) -> SegmentCommand32<E>
pub fn clone(&self) -> DysymtabCommand<E>
pub fn clone(&self) -> VersionMinCommand<E>
pub fn clone(&self) -> SegmentCommand64<E>
impl Clone for ImagePrologueDynamicRelocationHeader
impl Clone for ImagePrologueDynamicRelocationHeader
pub fn clone(&self) -> ImagePrologueDynamicRelocationHeader
pub fn clone(&self) -> CompressionHeader32<E>
pub fn clone(&self) -> EntryPointCommand<E>
pub fn clone(&self) -> ProgramHeader64<E>
pub fn clone(&self) -> TwolevelHintsCommand<E>
impl Clone for assert_return_arithmetic_nan_f32x4
impl Clone for assert_return_arithmetic_nan_f32x4
pub fn clone(&self) -> assert_return_arithmetic_nan_f32x4
impl Clone for assert_return_canonical_nan_f64x2
impl Clone for assert_return_canonical_nan_f64x2
pub fn clone(&self) -> assert_return_canonical_nan_f64x2
impl Clone for assert_return_arithmetic_nan_f64x2
impl Clone for assert_return_arithmetic_nan_f64x2
pub fn clone(&self) -> assert_return_arithmetic_nan_f64x2
pub fn clone(&self) -> shared
impl<'a> Clone for Lexer<'a>
impl<'a> Clone for Lexer<'a>
impl Clone for assert_return_canonical_nan_f32x4
impl Clone for assert_return_canonical_nan_f32x4
pub fn clone(&self) -> assert_return_canonical_nan_f32x4
pub fn clone(&self) -> Map<K, V>
pub fn clone(&self) -> BoxedSlice<K, V>
pub fn clone(&self) -> EntityList<T>
pub fn clone(&self) -> ListPool<T>
pub fn clone(&self) -> PackedOption<T>
pub fn clone(&self) -> PrimaryMap<K, V>
pub fn clone(&self) -> SecondaryMap<K, V>
pub fn clone(&self) -> TypedIxVec<TyIx, Ty>
pub fn clone(&self) -> UnitHeader<R, Offset>
pub fn clone(&self) -> LineRows<R, Program, Offset>
pub fn clone(&self) -> EntriesRaw<'abbrev, 'unit, R>
pub fn clone(&self) -> CieOrFde<'bases, Section, R>
pub fn clone(&self) -> DebugArangesOffset<T>
pub fn clone(&self) -> UninitializedUnwindContext<R>
pub fn clone(&self) -> PartialFrameDescriptionEntry<'bases, Section, R>
pub fn clone(&self) -> CompleteLineProgram<R, Offset>
pub fn clone(&self) -> RawLocListEntry<R>
pub fn clone(&self) -> LineProgramHeader<R, Offset>
pub fn clone(&self) -> EndianReader<Endian, T>
pub fn clone(&self) -> DebugMacinfoOffset<T>
pub fn clone(&self) -> Location<R, Offset>
pub fn clone(&self) -> DebugStrOffsetsIndex<T>
pub fn clone(&self) -> LineInstruction<R, Offset>
pub fn clone(&self) -> ArangeHeaderIter<R>
pub fn clone(&self) -> AttributeValue<R, Offset>
pub fn clone(&self) -> CallFrameInstruction<R>
pub fn clone(&self) -> AttrsIter<'abbrev, 'entry, 'unit, R>
pub fn clone(&self) -> DebugStrOffsetsBase<T>
pub fn clone(&self) -> RawRangeListsOffset<T>
pub fn clone(&self) -> LocationListEntry<R>
pub fn clone(&self) -> Piece<R, Offset>
pub fn clone(&self) -> LocationListsOffset<T>
pub fn clone(&self) -> DebugLineStrOffset<T>
pub fn clone(&self) -> EntriesCursor<'abbrev, 'unit, R>
pub fn clone(&self) -> EndianSlice<'input, Endian>
pub fn clone(&self) -> CfiEntriesIter<'bases, Section, R>
pub fn clone(&self) -> EndianVec<Endian>
pub fn clone(&self) -> CallFrameInstructionIter<'a, R>
pub fn clone(&self) -> UnwindTableRow<R>
pub fn clone(&self) -> ArangeHeader<R, Offset>
pub fn clone(&self) -> EhHdrTable<'a, R>
pub fn clone(&self) -> DebugLocListsIndex<T>
pub fn clone(&self) -> ParsedEhFrameHdr<R>
pub fn clone(&self) -> UnitType<Offset>
pub fn clone(&self) -> DebuggingInformationEntry<'abbrev, 'unit, R, Offset>
pub fn clone(&self) -> PubTypesEntry<R>
pub fn clone(&self) -> PubNamesEntryIter<R>
pub fn clone(&self) -> PubTypesEntryIter<R>
pub fn clone(&self) -> CommonInformationEntry<R, Offset>
pub fn clone(&self) -> DebugRngListsIndex<T>
pub fn clone(&self) -> LineInstructions<R>
pub fn clone(&self) -> PubNamesEntry<R>
pub fn clone(&self) -> DebugTypesUnitHeadersIter<R>
pub fn clone(&self) -> ArangeEntryIter<R>
pub fn clone(&self) -> IncompleteLineProgram<R, Offset>
pub fn clone(&self) -> EntriesTree<'abbrev, 'unit, R>
pub fn clone(&self) -> DebugInfoUnitHeadersIter<R>
pub fn clone(&self) -> FrameDescriptionEntry<R, Offset>
pub fn clone(&self) -> Operation<R, Offset>
pub fn clone(&self) -> FileEntry<R, Offset>
impl<I, U, F> Clone for FlatMap<I, U, F> where
I: Clone,
U: Clone + IntoFallibleIterator,
F: Clone,
<U as IntoFallibleIterator>::IntoFallibleIter: Clone,
impl<I, U, F> Clone for FlatMap<I, U, F> where
I: Clone,
U: Clone + IntoFallibleIterator,
F: Clone,
<U as IntoFallibleIterator>::IntoFallibleIter: Clone,
impl<I> Clone for Flatten<I> where
I: FallibleIterator + Clone,
<I as FallibleIterator>::Item: IntoFallibleIterator,
<<I as FallibleIterator>::Item as IntoFallibleIterator>::IntoFallibleIter: Clone,
impl<I> Clone for Flatten<I> where
I: FallibleIterator + Clone,
<I as FallibleIterator>::Item: IntoFallibleIterator,
<<I as FallibleIterator>::Item as IntoFallibleIterator>::IntoFallibleIter: Clone,
impl<I> Clone for Peekable<I> where
I: Clone + FallibleIterator,
<I as FallibleIterator>::Item: Clone,
impl<I> Clone for Peekable<I> where
I: Clone + FallibleIterator,
<I as FallibleIterator>::Item: Clone,
pub fn clone(&self) -> Iterator<I>ⓘNotable traits for Iterator<I>impl<I> Iterator for Iterator<I> where
I: FallibleIterator, type Item = Result<<I as FallibleIterator>::Item, <I as FallibleIterator>::Error>;
impl<I> Iterator for Iterator<I> where
I: FallibleIterator, type Item = Result<<I as FallibleIterator>::Item, <I as FallibleIterator>::Error>;impl<I, J> Clone for Interleave<I, J> where
I: Clone + IndexedParallelIterator,
J: Clone + IndexedParallelIterator<Item = <I as ParallelIterator>::Item>,
impl<I, J> Clone for Interleave<I, J> where
I: Clone + IndexedParallelIterator,
J: Clone + IndexedParallelIterator<Item = <I as ParallelIterator>::Item>,
impl<A, B> Clone for Chain<A, B> where
A: Clone + ParallelIterator,
B: Clone + ParallelIterator<Item = <A as ParallelIterator>::Item>,
impl<A, B> Clone for Chain<A, B> where
A: Clone + ParallelIterator,
B: Clone + ParallelIterator<Item = <A as ParallelIterator>::Item>,
impl<I> Clone for Intersperse<I> where
I: Clone + ParallelIterator,
<I as ParallelIterator>::Item: Clone,
<I as ParallelIterator>::Item: Clone,
impl<I> Clone for Intersperse<I> where
I: Clone + ParallelIterator,
<I as ParallelIterator>::Item: Clone,
<I as ParallelIterator>::Item: Clone,
impl<A, B> Clone for ZipEq<A, B> where
A: Clone + IndexedParallelIterator,
B: Clone + IndexedParallelIterator,
impl<A, B> Clone for ZipEq<A, B> where
A: Clone + IndexedParallelIterator,
B: Clone + IndexedParallelIterator,
impl<I, J> Clone for InterleaveShortest<I, J> where
I: Clone + IndexedParallelIterator,
J: Clone + IndexedParallelIterator<Item = <I as ParallelIterator>::Item>,
impl<I, J> Clone for InterleaveShortest<I, J> where
I: Clone + IndexedParallelIterator,
J: Clone + IndexedParallelIterator<Item = <I as ParallelIterator>::Item>,
impl<A, B> Clone for Zip<A, B> where
A: Clone + IndexedParallelIterator,
B: Clone + IndexedParallelIterator,
impl<A, B> Clone for Zip<A, B> where
A: Clone + IndexedParallelIterator,
B: Clone + IndexedParallelIterator,
impl Clone for Collector
impl Clone for Collector
pub fn clone(&self) -> Collector
pub fn clone(&self) -> Collector
Creates another reference to the same garbage collector.
pub fn clone(&self) -> Atomic<T>
pub fn clone(&self) -> Atomic<T>
Returns a copy of the atomic value.
Note that a Relaxed load is used here. If you need synchronization, use it with other
atomics or fences.
pub fn clone(&self) -> Shared<'_, T>
impl Clone for OutputReader
impl Clone for OutputReader
pub fn clone(&self) -> CountedList<T>
impl<I, T> Clone for CountedListWriter<I, T> where
I: Serialize<Error = Error> + Clone,
T: Clone + IntoIterator<Item = I>,
impl<I, T> Clone for CountedListWriter<I, T> where
I: Serialize<Error = Error> + Clone,
T: Clone + IntoIterator<Item = I>,
pub fn clone(&self) -> CountedListWriter<I, T>
pub fn clone(&self) -> FilesetEntryCommand<E>
pub fn clone(&self) -> RoutinesCommand64<E>
pub fn clone(&self) -> SectionHeader64<E>
pub fn clone(&self) -> DyldCacheMappingInfo<E>
pub fn clone(&self) -> EntryPointCommand<E>
pub fn clone(&self) -> DylibTableOfContents<E>
pub fn clone(&self) -> DyldSubCacheInfo<E>
pub fn clone(&self) -> LinkerOptionCommand<E>
pub fn clone(&self) -> SegmentCommand64<E>
pub fn clone(&self) -> BuildVersionCommand<E>
pub fn clone(&self) -> PrebindCksumCommand<E>
pub fn clone(&self) -> CompressionHeader64<E>
impl Clone for ImageAlpha64RuntimeFunctionEntry
impl Clone for ImageAlpha64RuntimeFunctionEntry
pub fn clone(&self) -> ImageAlpha64RuntimeFunctionEntry
pub fn clone(&self) -> BuildToolVersion<E>
pub fn clone(&self) -> DyldInfoCommand<E>
impl Clone for ImagePrologueDynamicRelocationHeader
impl Clone for ImagePrologueDynamicRelocationHeader
pub fn clone(&self) -> ImagePrologueDynamicRelocationHeader
pub fn clone(&self) -> SubFrameworkCommand<E>
pub fn clone(&self) -> SegmentCommand32<E>
pub fn clone(&self) -> EncryptionInfoCommand32<E>
pub fn clone(&self) -> DylibReference<E>
pub fn clone(&self) -> SectionHeader32<E>
pub fn clone(&self) -> TwolevelHintsCommand<E>
pub fn clone(&self) -> CompressionHeader32<E>
pub fn clone(&self) -> EncryptionInfoCommand64<E>
pub fn clone(&self) -> SymbolFlags<Section>
pub fn clone(&self) -> SourceVersionCommand<E>
pub fn clone(&self) -> SubLibraryCommand<E>
pub fn clone(&self) -> ProgramHeader32<E>
pub fn clone(&self) -> RoutinesCommand32<E>
pub fn clone(&self) -> ProgramHeader64<E>
impl Clone for ImageEpilogueDynamicRelocationHeader
impl Clone for ImageEpilogueDynamicRelocationHeader
pub fn clone(&self) -> ImageEpilogueDynamicRelocationHeader
pub fn clone(&self) -> SubUmbrellaCommand<E>
pub fn clone(&self) -> SubClientCommand<E>
pub fn clone(&self) -> DysymtabCommand<E>
pub fn clone(&self) -> LinkeditDataCommand<E>
pub fn clone(&self) -> DylinkerCommand<E>
pub fn clone(&self) -> FvmfileCommand<E>
pub fn clone(&self) -> DyldCacheImageInfo<E>
pub fn clone(&self) -> VersionMinCommand<E>
pub fn clone(&self) -> DyldCacheHeader<E>
pub fn clone(&self) -> PreboundDylibCommand<E>
pub fn clone(&self) -> DataInCodeEntry<E>
impl<'a, V> Clone for Keys<'a, V>
impl<'a, V> Clone for Keys<'a, V>
impl<'a, V> Clone for Iter<'a, V>
impl<'a, V> Clone for Iter<'a, V>
impl<'a, V> Clone for Values<'a, V>
impl<'a, V> Clone for Values<'a, V>
pub fn clone(&self) -> VecMap<V>
pub fn clone_from(&mut self, source: &VecMap<V>)
pub fn clone(&self) -> BandwidthLogging<TInner>
impl<'a> Clone for Parse<'a>
impl<'a> Clone for Parse<'a>
pub fn clone(&self) -> TinyVec<A>
pub fn clone_from(&mut self, o: &TinyVec<A>)
pub fn clone(&self) -> ArrayVec<A>
pub fn clone_from(&mut self, o: &ArrayVec<A>)
pub fn clone(&self) -> ConnectionHandlerEvent<TOutboundOpenInfo, TCustom>
pub fn clone(&self) -> EitherFuture<A, B>ⓘNotable traits for EitherFuture<AFuture, BFuture>impl<AFuture, BFuture, AInner, BInner> Future for EitherFuture<AFuture, BFuture> where
AFuture: TryFuture<Ok = AInner>,
BFuture: TryFuture<Ok = BInner>, type Output = Result<EitherOutput<AInner, BInner>, EitherError<<AFuture as TryFuture>::Error, <BFuture as TryFuture>::Error>>;
impl<AFuture, BFuture, AInner, BInner> Future for EitherFuture<AFuture, BFuture> where
AFuture: TryFuture<Ok = AInner>,
BFuture: TryFuture<Ok = BInner>, type Output = Result<EitherOutput<AInner, BInner>, EitherError<<AFuture as TryFuture>::Error, <BFuture as TryFuture>::Error>>;pub fn clone(&self) -> EitherOutbound<A, B>
pub fn clone(&self) -> TransportTimeout<InnerTrans>
pub fn clone(&self) -> SubstreamEndpoint<TDialInfo>
pub fn clone(&self) -> MapStream<T, F>
pub fn clone(&self) -> EitherListenStream<A, B>
pub fn clone(&self) -> EitherError<A, B>
pub fn clone(&self) -> TransportError<TErr>
pub fn clone(&self) -> SelectUpgrade<A, B>
pub fn clone(&self) -> EitherOutput<A, B>
pub fn clone(&self) -> EitherUpgrade<A, B>
pub fn clone(&self) -> EitherName<A, B>
pub fn clone(&self) -> EitherFuture2<A, B>ⓘNotable traits for EitherFuture2<AFut, BFut>impl<AFut, BFut, AItem, BItem, AError, BError> Future for EitherFuture2<AFut, BFut> where
AFut: TryFuture<Ok = AItem, Error = AError>,
BFut: TryFuture<Ok = BItem, Error = BError>, type Output = Result<EitherOutput<AItem, BItem>, EitherError<AError, BError>>;
impl<AFut, BFut, AItem, BItem, AError, BError> Future for EitherFuture2<AFut, BFut> where
AFut: TryFuture<Ok = AItem, Error = AError>,
BFut: TryFuture<Ok = BItem, Error = BError>, type Output = Result<EitherOutput<AItem, BItem>, EitherError<AError, BError>>;pub fn clone(&self) -> OrTransport<A, B>
pub fn clone(&self) -> MapInboundUpgradeErr<U, F>
pub fn clone(&self) -> ListenerEvent<TUpgr, TErr>
pub fn clone(&self) -> FromFnUpgrade<P, F>
pub fn clone(&self) -> MapOutboundUpgradeErr<U, F>
pub fn clone(&self) -> AndThenStream<TListener, TMap>
pub fn clone(&self) -> MapOutboundUpgrade<U, F>
pub fn clone(&self) -> MapInboundUpgrade<U, F>
pub fn clone(&self) -> EitherTransport<A, B>
pub fn clone(&self) -> SharedSecret<D>
pub fn clone(&self) -> GenericArray<T, N>
pub fn clone(&self) -> Hmac<D>
pub fn clone(&self) -> MacResult<N>
impl Clone for Sha512Trunc256
impl Clone for Sha512Trunc256
impl Clone for Sha512Trunc224
impl Clone for Sha512Trunc224
pub fn clone(&self) -> BlockBuffer<BlockSize>
pub fn clone(&self) -> GenDnsConfig<T, C, P>
pub fn clone(&self) -> AsyncResolver<C, P>
pub fn clone(&self) -> RetryDnsHandle<H>
pub fn clone(&self) -> Ipv4AddrRangeⓘNotable traits for Ipv4AddrRangeimpl Iterator for Ipv4AddrRange type Item = Ipv4Addr;
impl Iterator for Ipv4AddrRange type Item = Ipv4Addr;pub fn clone(&self) -> Ipv6SubnetsⓘNotable traits for Ipv6Subnetsimpl Iterator for Ipv6Subnets type Item = Ipv6Net;
impl Iterator for Ipv6Subnets type Item = Ipv6Net;pub fn clone(&self) -> Ipv6AddrRangeⓘNotable traits for Ipv6AddrRangeimpl Iterator for Ipv6AddrRange type Item = Ipv6Addr;
impl Iterator for Ipv6AddrRange type Item = Ipv6Addr;pub fn clone(&self) -> Ipv4SubnetsⓘNotable traits for Ipv4Subnetsimpl Iterator for Ipv4Subnets type Item = Ipv4Net;
impl Iterator for Ipv4Subnets type Item = Ipv4Net;pub fn clone(&self) -> IpAddrRangeⓘNotable traits for IpAddrRangeimpl Iterator for IpAddrRange type Item = IpAddr;
impl Iterator for IpAddrRange type Item = IpAddr;impl<'a, K, V> Clone for Iter<'a, K, V>
impl<'a, K, V> Clone for Iter<'a, K, V>
pub fn clone(&self) -> LruCache<K, V, S>
impl<'a, K, V> Clone for Iter<'a, K, V>
impl<'a, K, V> Clone for Iter<'a, K, V>
impl<'a, K, V> Clone for Values<'a, K, V>
impl<'a, K, V> Clone for Values<'a, K, V>
pub fn clone(&self) -> LinkedHashMap<K, V, S>
impl<'a, K, V> Clone for Keys<'a, K, V>
impl<'a, K, V> Clone for Keys<'a, K, V>
impl<'a> Clone for DomainIter<'a>
impl<'a> Clone for DomainIter<'a>
impl<'a> Clone for Ancestors<'a>
impl<'a> Clone for Ancestors<'a>
impl<'a> Clone for Components<'a>
impl<'a> Clone for Components<'a>
impl<'a> Clone for Iter<'a>
impl<'a> Clone for Iter<'a>
pub fn clone(&self) -> TryUnfold<T, F, Fut>
pub fn clone(&self) -> Then<S, F, Fut>
pub fn clone(&self) -> Scan<S, St, F>
pub fn clone(&self) -> Flatten<S>
pub fn clone(&self) -> FlatMap<S, U, F>
pub fn clone(&self) -> Unfold<T, F, Fut>
pub fn clone(&self) -> TakeWhile<S, P>
pub fn clone(&self) -> Zip<A, B>
pub fn clone(&self) -> FilterMap<S, F>
pub fn clone(&self) -> SkipWhile<S, P>
pub fn clone(&self) -> IntoProtocolsHandlerSelect<TProto1, TProto2>
pub fn clone(&self) -> IntoMultiHandler<K, H>
pub fn clone(
&self
) -> ProtocolsHandlerEvent<TConnectionUpgrade, TOutboundOpenInfo, TCustom, TErr>
pub fn clone(&self) -> SubstreamProtocol<TUpgrade, TInfo>
pub fn clone(&self) -> ProtocolsHandlerSelect<TProto1, TProto2>
pub fn clone(&self) -> MultiHandler<K, H>
pub fn clone(&self) -> KBucketsTable<TKey, TVal>
pub fn clone(&self) -> EntryView<TKey, TVal>
pub fn clone(&self) -> AppliedPending<TKey, TVal>
pub fn clone(&self) -> Node<TKey, TVal>
pub fn clone(&self) -> InsertResult<TKey>
impl<'r> Clone for CaptureNames<'r>
impl<'r> Clone for CaptureNames<'r>
impl<'a> Clone for SetMatchesIter<'a>
impl<'a> Clone for SetMatchesIter<'a>
impl<'c, 't> Clone for SubCaptureMatches<'c, 't>
impl<'c, 't> Clone for SubCaptureMatches<'c, 't>
impl<'a> Clone for SetMatchesIter<'a>
impl<'a> Clone for SetMatchesIter<'a>
impl<'c, 't> Clone for SubCaptureMatches<'c, 't>
impl<'c, 't> Clone for SubCaptureMatches<'c, 't>
impl<'r> Clone for CaptureNames<'r>
impl<'r> Clone for CaptureNames<'r>
pub fn clone(&self) -> NoiseConfig<P, C, R>
pub fn clone(&self) -> NoiseAuthenticated<P, C, R>
pub fn clone(&self) -> AuthenticKeypair<T>
pub fn clone(&self) -> PresharedKeyIdentity
pub fn clone(&self) -> KeyShareEntry
pub fn clone(&self) -> PresharedKeyOffer
pub fn clone(&self) -> PreSharedKey
impl<'a, K, V> Clone for Iter<'a, K, V>
impl<'a, K, V> Clone for Iter<'a, K, V>
pub fn clone(&self) -> HttpsStream<S>ⓘNotable traits for HttpsStream<S>impl<S> Write for HttpsStream<S> where
S: NetworkStream, impl<S> Read for HttpsStream<S> where
S: NetworkStream,
impl<S> Write for HttpsStream<S> where
S: NetworkStream, impl<S> Read for HttpsStream<S> where
S: NetworkStream, pub fn clone(&self) -> HttpStreamⓘNotable traits for HttpStreamimpl Write for HttpStreamimpl Read for HttpStream
impl Write for HttpStreamimpl Read for HttpStreamimpl<'a> Clone for PercentDecode<'a>
impl<'a> Clone for PercentDecode<'a>
pub fn clone(&self) -> AllowStdIo<T>ⓘNotable traits for AllowStdIo<T>impl<T> Write for AllowStdIo<T> where
T: Write, impl<T> Read for AllowStdIo<T> where
T: Read,
impl<T> Write for AllowStdIo<T> where
T: Write, impl<T> Read for AllowStdIo<T> where
T: Read, impl<X> Clone for WeightedIndex<X> where
X: Clone + SampleUniform + PartialOrd<X>,
<X as SampleUniform>::Sampler: Clone,
impl<X> Clone for WeightedIndex<X> where
X: Clone + SampleUniform + PartialOrd<X>,
<X as SampleUniform>::Sampler: Clone,
pub fn clone(&self) -> IndexVecIntoIterⓘNotable traits for IndexVecIntoIterimpl Iterator for IndexVecIntoIter type Item = usize;
impl Iterator for IndexVecIntoIter type Item = usize;impl<X> Clone for Uniform<X> where
X: Clone + SampleUniform,
<X as SampleUniform>::Sampler: Clone,
impl<X> Clone for Uniform<X> where
X: Clone + SampleUniform,
<X as SampleUniform>::Sampler: Clone,
impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: Clone + BlockRngCore + SeedableRng,
Rsdr: Clone + RngCore,
impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: Clone + BlockRngCore + SeedableRng,
Rsdr: Clone + RngCore,
impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: BlockRngCore + SeedableRng + Clone,
Rsdr: RngCore + Clone,
impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: BlockRngCore + SeedableRng + Clone,
Rsdr: RngCore + Clone,
impl<R> Clone for BlockRng<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng64<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng64<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
pub fn clone(&self) -> EitherWriter<A, B>ⓘNotable traits for EitherWriter<A, B>impl<A, B> Write for EitherWriter<A, B> where
A: Write,
B: Write,
impl<A, B> Write for EitherWriter<A, B> where
A: Write,
B: Write, pub fn clone(&self) -> EitherWriter<A, B>ⓘNotable traits for EitherWriter<A, B>impl<A, B> Write for EitherWriter<A, B> where
A: Write,
B: Write,
impl<A, B> Write for EitherWriter<A, B> where
A: Write,
B: Write, pub fn clone(&self) -> Pattern<S, A>
pub fn clone(&self) -> ByteClass<T, S>
pub fn clone(&self) -> Premultiplied<T, S>
pub fn clone(&self) -> PremultipliedByteClass<T, S>
pub fn clone(&self) -> SparseDFA<T, S>
pub fn clone(&self) -> ByteClass<T, S>
pub fn clone(&self) -> Standard<T, S>
pub fn clone(&self) -> DenseDFA<T, S>
pub fn clone(&self) -> Standard<T, S>
Cloning an ANSIGenericString will clone its underlying string.
Examples
use ansi_term::ANSIString;
let plain_string = ANSIString::from("a plain string");
let clone_string = plain_string.clone();
assert_eq!(clone_string, plain_string);pub fn clone(&self) -> ANSIGenericString<'a, S>
pub fn clone(&self) -> Mempool<S>
pub fn clone(&self) -> Snapshot<S>
pub fn clone(&self) -> Consensus<S>
pub fn clone(&self) -> Info<S>
pub fn clone(&self) -> WithDispatch<T>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;pub fn clone(&self) -> Instrumented<T>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;